package cn.ybk.pet.domain;

import cn.ybk.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain{

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    private PetType parent;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();



}
